package com.zhengjiang.pattern.demo.decorator;

public class CustomerBill {

    public static void main(String[] args) {
        PurchaseAction customer = new Customer();
        customer = new IPhonePurchaseAction(customer);
        customer = new MacBookPurchaseAction(customer);
        customer.show();
        System.out.println(String.format("消费总额：%s",customer.cost()));
    }
}
